<?php

namespace App\Entity\Account;

/** @Entity */
class User {

  /** @ID(\PHPSpring\Type\IDType::AUTO) */
  public int $uId;

  /**
   * @Required("姓名必填")
   * @Async(message="姓名 %s 已存在")
   */
  public string $name;

  /**
   * @Required(message="年龄必填", groups=array(\App\Consts\ValidationGroup::CREATE))
   * @Range(min=18, max=60, message="年龄范围%min～%max岁")
   */
  public int $age;
  public ?string $corverImg;

}
